<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
  <a v-bind:href="url">link</a>
  <img v-bind:src="imgUrl">

  <a :href="url">link</a>
  <img :src="imgUrl">
</div>
<script src="https://unpkg.com/vue/dist/vue.min.js"></script>

<script>
  var app = new Vue({
    el:'#app',
    data:{
      url:'https://www.github.com',
      imgUrl:'https://p9-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/02c64bbc07c145a7ac8b20c8bb6d63fe~tplv-k3u1fbpfcp-watermark.awebp'
    }
  })
</script>

</body>
</html>